package com.example.test.model.impl;

import android.content.Context;

import com.example.test.database.UserDAO;
import com.example.test.entity.News;
import com.example.test.model.imodel.ISchoolEssay;

public class SchoolEssayImpl implements ISchoolEssay {
    private UserDAO userDAO ;
    public SchoolEssayImpl(Context context){userDAO = new UserDAO(context);}

    @Override
    public boolean addNews(String news_type , String first_title , String second_title , String imgPath , String inputText , String publisher) {
        return  userDAO.addNews(news_type , first_title , second_title , imgPath , inputText , publisher);
    }
}
